<template>
    <div class='depotEnter'>
          <div class="searchInput">
            <div>
                <input type="text"  @input="search">
            </div>
        </div>
        <listOdd  :data="data" :type="'移库'"></listOdd>
        <addButton :type="'移库'"></addButton>
    </div>
</template>

<script>
import listOdd from '@/components/common/listOdd.vue';
import addButton from '@/components/common/addButton.vue';
export default {
    data(){
        return {
            data:[]
        }
    },
     methods:{
        search(e){
                let value = e.mp.detail.value;
                this.$https.get(`http://rap2api.taobao.org/app/mock/22254/lyl/xiaochengxu/search?value=${value}`).then(res=>{
                   this.data = res.data.data ;
                }).catch(err=>{
                    console.dir(err)
                })
        }
    },
       mounted(){
        this.$https.get("http://rap2api.taobao.org/app/mock/22254/lyl/xiaochengxu/list",{page:1,rows:10,token:1000}).then(res=>{
            console.dir(res)
               this.data = res.data.data ;
        })
    },
    components:{
        listOdd,
        addButton
    },
 
}
</script>


<style lang="scss" scoped>
        .depotEnter{
            height:100%;
        }
</style>